﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="EditCustomer.aspx.cs" Inherits="CustomerService.EditCustomer" %>

<%@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register TagPrefix="csl" Src="~/tabCustomer.ascx" TagName="CustomerTab" %>
<%@ Register TagPrefix="csl" Src="~/tabOrders.ascx" TagName="OrderTab" %>
<%@ Register TagPrefix="csl" Src="~/tabSequences.ascx" TagName="SequenceTab" %>
<%@ Register TagPrefix="csl" Src="~/tabTransactions.ascx" TagName="TransactionsTab" %>
<%@ Register TagPrefix="csl" Src="~/tabCustomerSourceID.ascx" TagName="CustomerSourceIDTab" %>
<%@ Register TagPrefix="csl" Src="~/tabNotes.ascx" TagName="tabNotes" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>
        <%=_owner.LongName %>
    </title>
    <link rel="Stylesheet" href="style.css" type="text/css" />
    <script language="javascript" type="text/javascript">
        function body_onload() {
        }
        
        function TearOff(url, name, width, height) {
            window.name = 'PUMain';
            window.open(url, name, 'left=200,top=200,personalbar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes,menubar=no,width=' + width + ',height=' + height);
        }
    </script>
</head>
<body onload="body_onload();">
    <form id="form1" runat="server">
    <div>
    <asp:toolkitscriptmanager ID="Toolkitscriptmanager1" runat="server"></asp:toolkitscriptmanager>
        <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
            <asp:TabPanel runat="server" HeaderText="Customer" ID="TabPanelCustomer">
                <HeaderTemplate>
                    Customer
                </HeaderTemplate>
                <ContentTemplate>
                    <csl:CustomerTab ID="customerTab1" runat="server" />
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanelOrders" runat="server" HeaderText="Orders">
                <ContentTemplate>
                    <csl:OrderTab ID="orderTab1" runat="server" />
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanelSequences" runat="server" HeaderText="Sequences">
                <ContentTemplate>
                    <csl:SequenceTab ID="sequenceTab1" runat="server" />
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="TabPanelNotes" runat="server" HeaderText="Notes">
                <ContentTemplate>
                    <csl:tabNotes ID="notesTab1" runat="server" />
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="tabPanelInbound" runat="server" HeaderText="Inbound Calls">
                <ContentTemplate>
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel runat="server" ID="tabPanelActivity" HeaderText="Audit">
            </asp:TabPanel>
            <asp:TabPanel runat="server" ID="TabPanelTransactions" HeaderText="Transactions">
                <ContentTemplate>
                    <csl:TransactionsTab id="transactionsTab1" runat="server" />
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel runat="server" ID="tabPanelOutbound" HeaderText="Outbound activity">
            </asp:TabPanel>
            <asp:TabPanel runat="server" ID="tabPanelCustomerSourceID" HeaderText="Customer Source IDs">
                <ContentTemplate>
                    <csl:CustomerSourceIDTab id="customerSourceIDsTab1" runat="server" />
                </ContentTemplate>
            </asp:TabPanel>
        </asp:TabContainer>
        <asp:Label ID="lblMessage" runat="server" ForeColor="Red" />
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List"  />
        <asp:Button ID="btnSave" runat="server" Text="Save Changes" 
            onclick="btnSave_Click" />&nbsp&nbsp&nbsp
        <asp:Button ID="btnHome" runat="server" Text="Home" OnClick="btnHome_Click" />
        <asp:Button ID="btnDiscard" runat="server" OnClick="btnDiscard_Click" style="display:none" />
        <asp:Button ID="btnAuthCard" runat="server" OnClick="btnAuthCard_Click" Text="Auth Card" />
        <asp:AlwaysVisibleControlExtender ID="ace" runat="server"
            TargetControlID="note"         
            VerticalSide="Bottom"
            VerticalOffset="10"
            HorizontalSide="Right"
            HorizontalOffset="10"
            ScrollEffectDuration=".1"/>           
        <div id="note" runat="server">
            Note:<br />
            <asp:TextBox ID="txtNote" runat="server" Wrap="true" TextMode="MultiLine" Width="400px" Rows="4" />
        </div>
    </div>
    </form>
</body>
</html>
